﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 备货清单对应步级数量
    /// </summary>
    [Table("PB_PickListSteps")]
    public partial class PB_PickListSteps
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 主表ID（主表ID）
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 货区Id
        /// </summary>
        public String AreaId { get; set; }

        /// <summary>
        /// 货架Id
        /// </summary>
        public String RackId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 货位Id
        /// </summary>
        public String LocationId { get; set; }

        /// <summary>
        /// 备货数量
        /// </summary>
        public Double? StockVolume { get; set; }

        /// <summary>
        /// 已经备货数量
        /// </summary>
        public Double? ReadyNums { get; set; }

        /// <summary>
        /// 清单子表Id
        /// </summary>
        public String SubId { get; set; }

        /// <summary>
        /// 状态：0-默认；1-全部出货；2-未全部出货
        /// </summary>
        public Int32? State { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 已发货数量
        /// </summary>
        public Double? ShippedNums { get; set; }

        /// <summary>
        /// 关联的单号(弃用)
        /// </summary>
        public String OddNumber { get; set; }

        /// <summary>
        /// PB_ShippingList 发货通知单ID（弃用）
        /// </summary>
        public String ShippingId { get; set; }

        /// <summary>
        /// 当前步级
        /// </summary>
        public String StepIndex { get; set; }

        public int? Slot { get; set; }

        /// <summary>
        /// 原始物料id
        /// </summary>
        public string OriginalMaterialId { get; set; }
    }
}